package o;

import android.graphics.drawable.Drawable;
import android.widget.TextView;
import com.huawei.appgallery.purchasehistory.ui.widget.ToolBarIcon.a;
import o.cst.b;
import o.cst.c;
import o.cst.h;

public class ctz implements a {
    public void ˋ(TextView textView, cts.a aVar) {
        int dimensionPixelSize = textView.getContext().getResources().getDimensionPixelSize(c.ˎ);
        Drawable drawable;
        switch (5.ॱ[aVar.ordinal()]) {
            case 1:
                drawable = textView.getResources().getDrawable(b.ʽ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(h.ʻॱ);
                return;
            case 2:
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(b.ᐝ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(h.ॱˎ);
                return;
            case 3:
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(b.ॱ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(h.ʼ);
                return;
            default:
                Logger.e("ToolBarIconStyleImpl", "unsupport button type");
                return;
        }
    }
}
